package com.cjr.ddp.service.impl;

import com.cjr.ddp.dao.BigScreenDao;
import com.cjr.ddp.entity.ReturnTargetData;
import com.cjr.ddp.service.BigScreenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author cjr
 * @date Created in 2020-03-08 15:31
 * @description
 * @modified By
 */
@Service
public class BigScreenServiceImpl implements BigScreenService {

    @Autowired
    BigScreenDao bigScreenDao;


    /**
     * @param
     * @return java.util.List<com.cjr.ddp.entity.ReturnTargetData>
     * @throws
     * @author cjr
     * @date 2020-03-08 15:32
     * @description 大屏销售量分析
     */
    @Override
    public List<ReturnTargetData> selectTargetDataList(String param) {
        return bigScreenDao.selectTargetDataList(param);
    }


    /**
     * @param
     * @return java.util.List<com.cjr.ddp.entity.ReturnTargetData>
     * @throws
     * @author cjr
     * @date 2020-03-08 15:32
     * @description 大屏成活率死亡率分析
     */
    @Override
    public List<Map<String, Object>> selectLiveAndDeath() {
        return bigScreenDao.selectLiveAndDeath();
    }


}
